package com.coship.vasms.adstorm.common.log;

import org.apache.log4j.Logger;

public class JLoggerImpl implements JLogger {

	private Logger log = null;

	public JLoggerImpl(Logger log) {
		this.log = log;
	}	

	/**
	 * 写日�? 
	 * @param 业务使用日志对象
	 */
	public void biz(String info) {
		log.log(BizLevel.BIZ,info);
	}
	
	public void debug(String message) {
		log.debug(message);
	}
	
	public void info(String message){
		log.info(message);
	}

	public void error(String message) {
		log.error(message);
	}

	public void warn(String message) {
		log.warn(message);
	}

	public void fatal(String message) {
		log.fatal(message);
	}
		
	public void debug(String message,Throwable t) {
		log.debug(message,t);
	}
	
	public void info(String message,Throwable ex){
		log.info(message,ex);
	}

	public void error(String message,Throwable t) {
		log.error(message,t);
	}

	public void warn(String message,Throwable t) {
		log.warn(message,t);
	}

	public void fatal(String message,Throwable t) {
		log.fatal(message,t);
	}
}
